﻿using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Bson;
using Colorful.Models;
using Colorful.Database;

namespace Colorful.CMS
{
    #region DbContext
    public partial class DbContext
    {
        #region Collections
        /// <summary>
        /// 用户表
        /// </summary>
        public IMongoCollection<Member> Members
        {
            get
            {
                return _db.GetCollection<Member>("Member");
            }
        }
        /// <summary>
        /// 要监控的应用
        /// </summary>
        public IMongoCollection<App> Apps
        {
            get
            {
                return _db.GetCollection<App>("App");
            }
        }
        #endregion
    }
    #endregion
}
